var id=getvl("id");
/*urlcore+*/
    
	function  huifu(){
		var lirong=$("#huifuleirong").val();
		
		if(id!="" && lirong!="" && uuuuid!=""){
	$.ajax({
		url: urlcore + '/api/helpComment/add',
		type: "post",
		contentType: "application/json;charset=utf-8",
		data: JSON.stringify({
			 "helpCenterId":id,
             "content":lirong
		}),
		dataType: "json",
		success: function(data) {
			if(data.success == true) {
				
				window.location.href = document.referrer;
				
			} else if(data.code == 'OVERTIME') {
				var thisUrl = window.location.href;
				if(thisUrl.indexOf('login.html') <= -1) {
					top.window.location.href = "login.html";
				}
			} else {
				alert(data.msg);
			}
		},
		error: function() {
			alert("error");
		}
	});
		}else{
			alert("未登录或信息有误");
		}
	}


